Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: flash: stm32 xspi and ospi: early init exit for memap mode #82088

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

GeorgeCGV
Copy link
Collaborator

@GeorgeCGV GeorgeCGV commented Nov 26, 2024

Exit the init earlier when OSPI or xSPI is in memory map mode. Avoid unnecessary checks and prevent pin reconfiguration
that might cause line spikes (e.g. when pin config differs between an application and a bootloader). Clock check beforehand is preserved (mainly for non-mem-map mode operation as we access the register. When the clock is not enabled in mem map mode it will be noticed way earlier).

Misc: removed \n from the LOG_DBG string.

@GeorgeCGV
Copy link
Collaborator Author

Compliance checks fail due to " /bin/sh: 1: gitlint: not found".

FRASTM
FRASTM previously approved these changes Nov 27, 2024
Copy link
Collaborator

@FRASTM FRASTM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erwango
Copy link
Member

erwango commented Nov 27, 2024

Compliance checks fail due to " /bin/sh: 1: gitlint: not found".

Due to recent CI change. Please rebase

Exit the init earlier when OSPI is in memory map mode. Avoid
unnecessary checks and prevent pin reconfiguration that might
cause line spikes. Clock check beforehand is preserved.

Remove '\n' from the LOG_DBG string.

Signed-off-by: Georgij Cernysiov <[email protected]>
Exit the init earlier when XSPI is in memory map mode. Avoid
unnecessary checks and prevent pin reconfiguration that might
cause line spikes. Clock check beforehand is preserved.

Remove '\n' from the LOG_DBG string.

Signed-off-by: Georgij Cernysiov <[email protected]>
@GeorgeCGV GeorgeCGV force-pushed the stm32_ospi_memap_early_init_exit branch from 0fd925a to b33fe56 Compare November 27, 2024 11:50
@GeorgeCGV GeorgeCGV changed the title drivers: flash: stm32 ospi: early init exit for memap mode drivers: flash: stm32 xspi and ospi: early init exit for memap mode Nov 27, 2024
@GeorgeCGV
Copy link
Collaborator Author

GeorgeCGV commented Nov 27, 2024

I rebased and added the same early exit to the xSPI driver. However, an unrelated storage flash map test fails.

Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for those changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants